package com.example.customer.exception;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
@AllArgsConstructor
public class ExceptionResponse {
    private String message;
    private Integer code;
    private Long timestamp;

    // 添加时间戳的构造方法
    public ExceptionResponse(String message, Integer code) {
        this.message = message;
        this.code = code;
        this.timestamp = System.currentTimeMillis();
    }
}